/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.course;

import java.util.List;

import com.idenger.modules.edu.dao.course.EduCourseContentDao;
import com.idenger.modules.edu.entity.course.EduCourseContent;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.course.CourseVideoAndPracticeDto;

/**
 * 视频Service
 * @author chenlin
 * @version 2017-12-01
 */
@Service
@Transactional(readOnly = true)
public class EduCourseContentService extends CrudService<EduCourseContentDao, EduCourseContent> {

	public EduCourseContent get(String id) {
		return super.get(id);
	}
	
	public List<CourseVideoAndPracticeDto> findEduCourseContentBysectionId(String sectionId) {
		return dao.findEduCourseContentBysectionId(sectionId);
	}
	
	public List<EduCourseContent> findList(EduCourseContent eduCourseContent) {
		return super.findList(eduCourseContent);
	}
	
	public Page<EduCourseContent> findPage(Page<EduCourseContent> page, EduCourseContent eduCourseContent) {
		return super.findPage(page, eduCourseContent);
	}
	
	@Transactional(readOnly = false)
	public void save(EduCourseContent eduCourseContent) {
		super.save(eduCourseContent);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduCourseContent eduCourseContent) {
		super.delete(eduCourseContent);
	}
	
}